Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/hehe page #272

Merged
merged 22 commits into from
May 31, 2024
Merged

Feature/hehe page #272

merged 22 commits into from
May 31, 2024

Conversation

Studsministern
Copy link
Contributor

@Studsministern Studsministern commented Apr 29, 2024

Changes:

  • Adds extra Hehe functionality to ekorre that converts the cover page of a Hehe PDF into a PNG and saves it in the database. Also adds a new integration test to test this functionality

  • Adds a unit test to check a file other than a PDF is not accepted for a Hehe

  • Exposes the Hehe uploadedAt property as a DateTime so this can be used in the frontend

  • Abstracts out functionality for uploading files in jest tests, and removing uploaded files, in both file- and Hehe tests

Note: This PR should be merged at the same time as a efterphest Hehe PR

@Studsministern

This comment was marked as outdated.

@Studsministern

This comment was marked as resolved.

Copy link
Contributor

@pontussjostedt pontussjostedt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tycker att det ser bra ut, har testat det tillsammans med frontenden och jag tycker det fungerar som jag förväntar mig.

src/api/hehe.api.ts Outdated Show resolved Hide resolved
src/schemas/hehe.graphql Outdated Show resolved Hide resolved
@Studsministern

This comment was marked as resolved.

Copy link

github-actions bot commented May 28, 2024

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 67.97% 1422/2092
🔴 Branches 46% 236/513
🔴 Functions 57.98% 247/426
🟡 Lines 67.75% 1351/1994

Test suite run success

248 tests passing in 20 suites.

Report generated by 🧪jest coverage report action from 6417caa

@Studsministern
Copy link
Contributor Author

Studsministern commented May 28, 2024

The GitHub Action should be run again after the pdf-to-png PR has been merged, and after vault has been unlocked. A PDF_TO_PNG_BASE_URL environment variable probably also has to be set.

Edit: Closes #241

@Studsministern Studsministern merged commit 733944d into main May 31, 2024
7 checks passed
Copy link

I have removed this deploy now 😇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants